// import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';

// export type DefaultConfig = PowerPartial<EggAppConfig>;

// export default (appInfo: EggAppInfo) => {
//   const config = {} as DefaultConfig;

//   // use for cookie sign key, should change to your own and keep security
//   config.keys = appInfo.name + '_1638797288717_7724';

//   // add your config here
//   config.middleware = [];

//   config.midwayFeature = {
//     // true 代表使用 midway logger
//     // false 或者为空代表使用 egg-logger
//     replaceEggLogger: true,
//   };

//   // config.security = {
//   //   csrf: false,
//   // };

//   return config;
// };

export const orm = {
  type: 'mysql',
  host: 'localhost',
  port: 3306,
  username: 'root',
  password: '970320',
  database: 'react-blog',
  synchronize: true,
  logging: false,
};
